﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package net.wooga.pets.models.world.vos.areas {
    import flash.geom.*;
    import net.wooga.pets.models.world.vos.actors.machines.*;
    import net.wooga.pets.constants.*;

    public class KindergartenVO extends RoomVO {

        public function KindergartenVO(_arg1:Object){
            super(_arg1);
        }
        override public function getTargetPositionOf(_arg1:String, _arg2:Number=0):Point{
            _arg1 = this.getCorrectType(_arg1);
            var _local3:Point = (((_positions[_arg1]) || (_positions[GameConstants.STATE_PATIENT])) as Point);
            _local3 = ((_local3) || (randomPosition));
            _local3.x = ((_arg2) || (_local3.x));
            return (_local3);
        }
        private function getCorrectType(_arg1:String):String{
            var _local3:String;
            var _local4:int;
            var _local2 = !((_arg1.toLowerCase().indexOf("baby") == -1));
            if (_local2){
                _local4 = (machine as KindergartenMachineVO).getFreePos;
                _local3 = ("baby_" + _local4);
                return (_local3);
            };
            return (_arg1);
        }

    }
}//package net.wooga.pets.models.world.vos.areas 
